package com.ai.mapper.security;

import com.ai.entity.security.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author chen
 * @since 2023-04-04 19:46:07
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    /**
     * 根据用户名查询用户
     *
     * @param account
     * @return
     */
    @Select("select * from sys_user where account = #{account};")
    SysUser selectByAccount(String account);

    @Select("select * from sys_user where account = #{userName};")
    SysUser selectByName(String userName);
}
